package zh.demo.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import zh.demo.dao.UserLogDao;
import zh.demo.model.UserLogEntity;

import java.util.List;
import java.util.Map;


@Service("userLogService")
public class UserLogService {
	@Autowired
	private UserLogDao userLogDao;
	
	public UserLogEntity queryObject(Long id){
		return userLogDao.queryObject(id);
	}
	
	public List<UserLogEntity> queryList(Map<String, Object> map){
		return userLogDao.queryList(map);
	}
	
	public int queryTotal(Map<String, Object> map){
		return userLogDao.queryTotal(map);
	}
	
	public void save(UserLogEntity userLog){
		userLogDao.save(userLog);
	}
	
	public void update(UserLogEntity userLog){
		userLogDao.update(userLog);
	}
	
	public void delete(Long id){
		userLogDao.delete(id);
	}
	
	public void deleteBatch(Long[] ids){
		userLogDao.deleteBatch(ids);
	}
	
}
